home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 4 / Meeting Pearls Vol. IV (1996)(GTI - Schatztruhe)[!].iso / Pearls / util / misc / CyberCron / Source / smakefile < prev    next >
Makefile  |  1992-10-07  |  1KB  |  61 lines

  1. # smakefile for CyberCron
  2. # Copyright © 1992 by Christopher A. Wichura (caw@miroc.chi.il.us)
  3. # All rights reserved.
  4.  
  5. PROGNAME = CyberCron
  6.  
  7. DEBUG = symbol
  8.  
  9. HDR = $(PROGNAME).gst
  10. CFLAGS = debug=$(DEBUG) nostkchk strmerge parms=reg optimize gstimm utillib
  11.  
  12. LFLAGS = smallcode smalldata
  13.  
  14. OBJS = startup.o CyberCron.o DoMsg.o CyberCronStrings.o wb2cli.o
  15. LIBS = LIB:amiga.lib LIB:sc.lib LIB:debug.lib
  16.  
  17. .c.o:
  18.     Copy $*.c $*.c.bak
  19.     Indent $*.c.bak $*.c
  20.     sc $(CFLAGS) gst=$(HDR) $*
  21.  
  22. .a.o:
  23.     ASM -iINCLUDE: $*
  24.  
  25. .cd.h:
  26.     CatComp $*.cd CFILE $*.h
  27.  
  28. .cd.o:
  29.     CatComp $*.cd OBJFILE $*.o
  30.  
  31. # build the stripped load file
  32. $(PROGNAME): $(PROGNAME).ld
  33.     slink from $(PROGNAME).ld to $(PROGNAME) stripdebug
  34.  
  35. # build a load file with the debugging info still present
  36. $(PROGNAME).ld: $(OBJS) version.o smakefile
  37.     slink with lib:utillib.with <with < (CyberCron.lnk)
  38. FROM $(OBJS) version.o
  39. TO $(PROGNAME).ld
  40. LIB $(LIBS)
  41. $(LFLAGS)
  42. ADDSYM
  43. MAP $(PROGNAME).map fhlsx plain
  44. <
  45.  
  46. ##############################################################################
  47. # make target for reference from the command line that causes
  48. # the revision number to be bumped up
  49. version:
  50.     UpCVersion $(PROGNAME) version.o
  51.     smake
  52.  
  53. ##############################################################################
  54. # dependancies for various objects
  55.  
  56. $(HDR): CyberCron.h CyberCronStrings.h smakefile
  57.     sc $(CFLAGS) noobjname makegst=$(HDR) CyberCronSyms
  58.  
  59. CyberCron.o: CyberCron.c $(HDR)
  60.  
  61.